package com.twentyOne.ClothingLand.service.impl;

import java.util.List;

import com.twentyOne.ClothingLand.dao.IStorageDAO;
import com.twentyOne.ClothingLand.dao.impl.StorageDAO;
import com.twentyOne.ClothingLand.service.IStorageService;
import com.twentyOne.ClothingLand.vo.Storage;

public class StorageService implements IStorageService {
	
	private IStorageDAO storageDAO = new StorageDAO();
	
	@Override
	public void addStorage(Storage storage) {
		
		this.storageDAO.addStorage(storage);
		
	}

	@Override
	public List<Storage> searchAllStorage() {
		
		return this.storageDAO.searchAllStorage();
		
	}

	@Override
	public Storage searchStorageByID(int storageId) {
		
		return this.storageDAO.searchStorageByID(storageId);
		
	}

}
